//
//  TeamCell.m
//  NewNest
//
//  Created by hesiyao on 16/1/21.
//  Copyright © 2016年 www.lanou3g.com蓝鸥科技. All rights reserved.
//

#import "TeamCell.h"

@implementation TeamCell

-(void)dealloc
{
    [_designerView release];
    [_project_managerView release];
    [_supervisorView release];
    [super dealloc];
}

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.designerView = [[TeamView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width / 3, [UIScreen mainScreen].bounds.size.height / 7)];
        [self.contentView addSubview:_designerView];
//        _designerView.backgroundColor = [UIColor yellowColor];
        [_designerView release];
        
        self.project_managerView = [[TeamView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width / 3, [UIScreen mainScreen].bounds.size.height / 7)];
//        self.project_managerView.backgroundColor = [UIColor cyanColor];
        [self.contentView addSubview:_project_managerView];
        [_project_managerView release];
        
        self.supervisorView = [[TeamView alloc] initWithFrame:CGRectMake(0, 0, [UIScreen mainScreen].bounds.size.width / 3, [UIScreen mainScreen].bounds.size.height / 7)];
        [self.contentView addSubview:_supervisorView];
//        self.supervisorView.backgroundColor = [UIColor redColor];
        [_supervisorView release];
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    
//    self.designerView.frame = CGRectMake(0, 0, self.contentView.frame.size.width / 3, self.contentView.frame.size.height);
    self.project_managerView.frame = CGRectMake(self.contentView.frame.size.width / 3, 0, _designerView.frame.size.width, _designerView.frame.size.height);
    self.supervisorView.frame = CGRectMake(self.contentView.frame.size.width / 3 * 2, 0, _designerView.frame.size.width, _designerView.frame.size.height);
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
